import {
	http
} from '../request/index.js';

// 验证码登录/注册
export const mobilelogin = (params) => {
	return http.post('/api/user/mobilelogin', params);
}

// 发送验证码
export const send = (params) => {
	return http.post('/api/sms/send', params);
}

// 微信授权手机号登录
export const wxPhoneLogin = (params) => {
	return http.post('/api/user/wxPhoneLogin', params);
}

// 公众号授权登录
export const redirectUrl = (params) => {
	return http.post('/api/user/redirectUrl', params);
}

// 注册信息
export const initialInfo = (params) => {
	return http.post('/api/user/initialInfo', params);
}

// 学生类型
export const getUserStudentType = (params) => {
	return http.get('/api/user/getUserStudentType', params);
}

// 着重提升板块
export const getUserImprovePlate = (params) => {
	return http.get('/api/user/getUserImprovePlate', params);
}

// 获取学习语种
export const getUserLearningType = (params) => {
	return http.get('/api/user/getUserLearningType', params);
}

// 等级
export const getUserBasalLevel = (params) => {
	return http.get('/api/user/getUserBasalLevel', params);
}
// 获取固定课程訂單分享数据
export const sharingdata = (params) => {
	return http.post('/api/fitness_course_reservation_order/getShareOrderData', params);
}


// 获取分组
export const groupingdata = (params) => {
	return http.get('/api/fitness.common/category', params);
}